net/holzammer/fileio/savefile.m

Description:

Contains a function to save a memory buffer to a file

Requirements:

Compiler: CreativE
OS: AmigaOS >=V39
CPU: >=68020

Functions:

savefile()

Purpose: Saves a memory buffer to a file
Usage: boolean:=savefile(path,buffer,size)
Parameters: path a STRING with the complete AmigaDOS path to the file to save to.
buffer a POINTER to the memory area to be saved. It's up to you to allocate/free it.
size the size of the buffer.
Return Values: TRUE on success
FALSE on failure